package com.xhtech.base.ext.image

import android.widget.ImageView
import com.xhtech.base.R
import com.yxh.lib_base.ext.view.visibleOrGone



fun ImageView.loadVip(vipCode: Int) {
    this.visibleOrGone(vipCode != 0)?.let {
        when (vipCode) {
            1 -> R.drawable.ic_vip_light

            3 -> {
                R.drawable.ic_vip_light
            }
            else -> {
                R.drawable.ic_vip_grey
            }
        }
    }
}

